﻿




using System.Web.Mvc;
using Hotpot.Modules.Blogs.Models;

namespace Hotpot.Modules.Blogs.ModelBinders
{
    public class BlogSearchCriteriaModelBinder : IModelBinder
    {
        public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
        {
            return new BlogSearchCriteria(controllerContext.HttpContext.Request.Form.Get("blogNameSearch"));
        }
    }
}
